package com.oxy.svc.impl;

import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;

import com.oxy.model.Pager;
import com.oxy.model.dao.TestDao;
import com.oxy.model.po.TestPO;
import com.oxy.svc.TestSvc;
import com.oxy.util.Oxy;

public class TestSvcImpl extends BaseSvc implements TestSvc {
	private final static Logger logger = Oxy.getLogManager().getLoggerCommon();

	public long getTestCount() {
		long ret = 0;

		TestDao dao = (TestDao)this.getDaoHolder().getDaoByIfClass(TestDao.class);
		ret = dao.count();

		return ret;
	}
	
	public List<TestPO> list(Pager pager) {
		List<TestPO> retList = new ArrayList<TestPO>();

		List<TestPO> poList = null;
		TestDao dao = (TestDao)this.getDaoHolder().getDaoByIfClass(TestDao.class);
		poList = dao.list(pager);
		retList = poList;

		return retList;
	}
}

